package com.szbber.medical.viewmodel

import android.content.Context
import androidx.lifecycle.MutableLiveData
import com.blankj.utilcode.utils.StringUtils
import com.google.gson.Gson
import com.orhanobut.logger.Logger
import com.szbber.commen.api.Repository
import com.szbber.commen.api.launch
import com.szbber.commen.base.BaseViewModel
import com.szbber.commen.utils.DataStoreUtil
import com.szbber.commen.utils.dataStoreRead
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.async

class SplashViewmodel : BaseViewModel() {

    val deviceType = MutableLiveData< Int>()
    fun getDeviceType(context: Context?) = launch{
        deviceType.value =   dataStoreRead<Int>("DeviceType")
    }
}